﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectAnchors.aspx.cs" Inherits="Danser_AJAXEnabledWebApplication.Query_Popups.SelectAnchors" %>



<%@ Register src="../User Controls/MultiSelectList.ascx" tagname="MultiSelectList" tagprefix="uc1" %>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Select Anchors</title>
    
    <script language="javascript"> 
    function closePopup()
    {
        window.opener.getSelectAnchorRefresh().click();
        return window.close();
    }
    </script>
     <style type="text/css">
         
     .StandardTableHeaderStyle
     {
	    background-color: #C0C0FF; /* before was - #b0c4de;*/
	    font-weight: bold;
	    font-family:'Arial';
	    font-size: 12pt;
	    color:#191970 /*midnightblue*/;
	    text-align: center;
	    vertical-align: middle;
    }
    
    .TableRowBorderStyle
    {
	    border-color: White;
	    border-style: solid;
	    border-width: 1px;
    }
    
    .EmptyRowStyle
    {
        background-color: #d3d3d3/*LightGray*/;
        border-color: White; 
        border-style: Solid; 
        border-width: 1px; 
        font-style: italic; 
        font-family: 'Arial'; 
        Font-Size: 12pt;
        text-align: center; 
        vertical-align: middle;
    }
     </style>   

</head>
<body bgcolor="Lavender">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="selectAnchorsScriptManager" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="selectAnchorsUpdatePanel" runat="server">
        <ContentTemplate>
            <asp:Panel ID="selectAnchorsPanel" runat="server" Width="800px">
                <table width="100%">
                    <tr>
                        <td>
                            <asp:Label ID="selectAnchorsLabel" runat="server" Font-Bold="True" 
                                Font-Names="Arial" Font-Size="12pt" ForeColor="MidnightBlue" 
                                Text="Select the anchor tests for comparison:"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Panel ID="testInfoFilterPanel" runat="server" Width="100%">
                                <table style="width:100%;">
                                    <tr>
                                        <td valign="top" width="200px">
                                            <asp:Label ID="selectLabel" runat="server" Font-Bold="True" 
                                                Font-Names="Arial" Font-Size="10pt" ForeColor="MidnightBlue" 
                                                Text="Select columns to display:"></asp:Label>
                                        </td>
                                        <td align="left" valign="top" width="80px">
                                            <uc1:MultiSelectList ID="columnsMultiSelectList" runat="server" />
                                        </td>
                                        <td align="left" valign="top">
                                            <asp:Button ID="filterButton" runat="server" BackColor="MidnightBlue" 
                                                BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                                                Font-Names="Arial" ForeColor="White" OnClick="filterButton_Click" 
                                                Text="Confirm" ToolTip="Display selected fields only" Width="70px" />
                                        </td>
                                    </tr>
                                </table>
                            </asp:Panel>
                       </td>
                    </tr>
                    <tr>
                        <td>
                        <asp:UpdateProgress ID="loadQueriesUpdateProgress" runat="server" 
                            AssociatedUpdatePanelID="selectAnchorsUpdatePanel" DisplayAfter="300">
                            <ProgressTemplate>
                            <table style="width:100%;">
                                <tr>
                                    <td width="20px">
                                        <asp:Image ID="Image1" runat="server" ImageUrl="~/Resourses/Images/info.bmp" />
                                    </td>
                                    <td>
                                        <asp:Label ID="waitLabel" runat="server" Font-Bold="False" 
                                            Font-Names="Arial" Font-Size="10pt" ForeColor="Black" 
                                            Text="Please wait while executing..."></asp:Label>
                                    </td>
                                </tr>
                            </table>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:GridView ID="anchorsGridView" runat="server" AllowPaging="True" 
                                AutoGenerateColumns="False" BackColor="LightGray" BorderColor="White" 
                                BorderStyle="Solid" BorderWidth="1px" DataSourceID="anchorsObjectDataSource" 
                                EmptyDataText="&lt; No Entries to Display &gt;" PageSize="7" Width="100%" 
                                DataKeyNames="TestInfoIndex">
                                <RowStyle BorderColor="White" BorderStyle="Solid" BorderWidth="1px" 
                                    Font-Names="Arial" HorizontalAlign="Center" VerticalAlign="Middle" 
                                    Font-Size="10pt" />
                                <EmptyDataRowStyle CssClass="EmptyRowStyle" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:CheckBox ID="rowSelector" runat="server" AutoPostBack="True" 
                                                oncheckedchanged="rowSelector_CheckedChanged" />
                                        </ItemTemplate>
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" Width="20px" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="TestInfoIndex" HeaderText="ID" 
                                        SortExpression="TestInfoIndex" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TestName" HeaderText="Name" 
                                        SortExpression="TestName" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Date" HeaderText="Date" SortExpression="Date" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Time" HeaderText="Time" SortExpression="Time" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="Operator" HeaderText="Operator" 
                                        SortExpression="Operator" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="APType" HeaderText="AP Type" 
                                        SortExpression="APType" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="APIP" HeaderText="AP IP" SortExpression="APIP" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="APFWVer" HeaderText="AP FW Ver" 
                                        SortExpression="APFWVer" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NICMAC" HeaderText="NIC MAC" 
                                        SortExpression="NICMAC" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="NICType" HeaderText="NIC Type" 
                                        SortExpression="NICType" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="ProjectName" HeaderText="Project" 
                                        SortExpression="ProjectName" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="OS" HeaderText="OS" SortExpression="OS" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TIC" HeaderText="TIC" SortExpression="TIC" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="SetupName" HeaderText="Setup" 
                                        SortExpression="SetupName" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="PlatformModel" HeaderText="Platform Model" 
                                        SortExpression="PlatformModel" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="PlatformName" HeaderText="Platform" 
                                        SortExpression="PlatformName" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:BoundField DataField="TrafficProtocol" HeaderText="Traffic Protocol" 
                                        SortExpression="TrafficProtocol" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:BoundField>
                                    <asp:CheckBoxField DataField="IsConfirmed" HeaderText="Confirmed" 
                                        SortExpression="IsConfirmed" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:CheckBoxField>
                                    <asp:CheckBoxField DataField="IsAnchor" HeaderText="Anchor" 
                                        SortExpression="IsAnchor" >
                                        <HeaderStyle CssClass="TableRowBorderStyle" />
                                        <ItemStyle CssClass="TableRowBorderStyle" />
                                    </asp:CheckBoxField>
                                </Columns>
                                <PagerStyle BackColor="#C0C0FF" BorderColor="Black" BorderStyle="Solid" 
                                    BorderWidth="1px" Font-Bold="True" Font-Names="Arial" 
                                    Font-Size="12pt" ForeColor="MidnightBlue" HorizontalAlign="Center" 
                                    VerticalAlign="Middle" />
                                <HeaderStyle Font-Bold="False" Font-Names="Arial" 
                                    Font-Size="12pt" ForeColor="MidnightBlue" HorizontalAlign="Center" 
                                    VerticalAlign="Middle" CssClass="StandardTableHeaderStyle" />
                                <AlternatingRowStyle Font-Names="Arial" Font-Size="10pt" />
                            </asp:GridView>
                            <asp:ObjectDataSource ID="anchorsObjectDataSource" runat="server" 
                                SelectMethod="GetTests" 
                                TypeName="Danser_AJAXEnabledWebApplication.DataSourceManagers.TestInfoDataSourceManager">
                                <SelectParameters>
                                    <asp:Parameter Name="filter" Type="String" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="selectButton" runat="server" BackColor="MidnightBlue" 
                                BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                                Font-Names="Arial" Font-Size="10pt" ForeColor="White" 
                                OnClientClick="return closePopup();" 
                                Text="Select" Width="70px" />
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:Button ID="cancelButton" runat="server" BackColor="MidnightBlue" 
                                BorderColor="#C0C0FF" BorderStyle="Solid" BorderWidth="1px" 
                                Font-Names="Arial" Font-Size="10pt" ForeColor="White" 
                                onclientclick="return window.close();" Text="Cancel" Width="70px" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
